// serialDlg.h : header file
//
#include "Comm.h"
#if !defined(AFX_SERIALDLG_H__DE40B946_CAE5_4E2C_A108_5F529477206A__INCLUDED_)
#define AFX_SERIALDLG_H__DE40B946_CAE5_4E2C_A108_5F529477206A__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

/////////////////////////////////////////////////////////////////////////////
// CSerialDlg dialog

class CSerialDlg : public CDialog
{
// Construction
public:
	void SaveSetting(void);
	int m_nSettingStop;
	CSerialDlg(CWnd* pParent = NULL);	// standard constructor

	TTYSTRUCT Int2TTY();
	TTYSTRUCT LoadSetting();

	

// Dialog Data
	//{{AFX_DATA(CSerialDlg)
	enum { IDD = IDD_SERIAL_DIALOG };
	int		m_nSettingBaud;
	CString	m_EditData;
	int		m_nSettingPort;
	int		m_nSettingData;
	int		m_nSettingFlow;
	int		m_nSettingParity;
	//}}AFX_DATA



	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CSerialDlg)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);	// DDX/DDV support
	//}}AFX_VIRTUAL

// Implementation
protected:
	HICON m_hIcon;
	CComm m_Comm;

	// Generated message map functions
	//{{AFX_MSG(CSerialDlg)
	virtual BOOL OnInitDialog();
	afx_msg void OnSysCommand(UINT nID, LPARAM lParam);
	afx_msg void OnPaint();
	afx_msg HCURSOR OnQueryDragIcon();
	afx_msg void OnCheckComm();
	virtual void OnCancel();
	virtual void OnOK();
	afx_msg void OnClear();
	afx_msg void OnUser();
	afx_msg void OnChangeEdit1();
	//}}AFX_MSG
	afx_msg LONG OnReceiveData(UINT,LONG);
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_SERIALDLG_H__DE40B946_CAE5_4E2C_A108_5F529477206A__INCLUDED_)
